#!/bin/bash

# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"

# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"

# MASCARAS DE RED
Netmask24="255.255.255.0"

./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`

#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward


ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask24 

route add -net 0.0.0.0 netmask 0.0.0.0 dev $interfaz gw $H132

#cp grupo4.html /var/www/grupo4.html

sudo /etc/init.d/apache2 restart

#./DNSresto.sh
